{{template "base/base.tpl" .}}
{{define "head"}}
<title>{{i18n .Lang "welcome"}} - {{i18n .Lang "app_intro"}}</title>
{{end}}
{{define "body"}}
	<form class="form-horizontal" role="form" method="get">
		<div class="alert alert-danger alert-dismissible" role="alert">
  			<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  			<strong>Warning!</strong>
			{{range $k, $v := .errors}}
			    <h1>{{$v.Key}} <small>{{$v.Message}}</small></h1>
			{{end}}
		</div>
	   <div class="form-group">
	    	<label for="firstname" class="col-sm-2 control-label">用户名</label>
	    	<div class="col-sm-5">
	        	<input type="text" class="form-control" name="Name" id="firstname" placeholder="请输入用户名">
	      	</div>
			<div class="col-sm-5">
	        	<div class="alert alert-danger alert-dismissible" role="alert">
  					<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		  			{{.errsMap.name.Message }}
				</div>
	      	</div>
	   </div>
	   <div class="form-group">
	    	<label for="lastname" class="col-sm-2 control-label">密　码</label>
	    	<div class="col-sm-10">
	        <input type="text" class="form-control" name="Pass" id="lastname" placeholder="请输入密码">
	      </div>
	   </div>
	   <div class="form-group">
		<label for="lastname" class="col-sm-2 control-label">邮　箱</label>
	    	<div class="col-sm-10">
	        <input type="email" class="form-control" id="lastname" name="Email" placeholder="请输入邮箱">
	    	</div>
		</div>
		<div class="form-group">
	      	<label for="lastname" class="col-sm-2 control-label">电　话</label>
	      	<div class="col-sm-10">
	    	<input type="tel" class="form-control" id="lastname" name="Phone" placeholder="请输入电话">
	      </div>
	   </div>
	   <div class="form-group">
	      <div class="col-sm-offset-2 col-sm-10">
	         <button type="submit" class="btn btn-default">提交</button>
	      </div>
	   </div>
	</form>
    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
{{end}}